package com.fh.modules.ems.dto;

import java.io.Serializable;
import java.util.Date;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fh.common.copy.CopyField;
import com.fh.common.query.QueryRuleEnum;
import com.fh.common.query.annotation.QueryWrapperRule;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Qiu,Junda 
 * @date 2019年8月4日
 * @description
 */
@Data
@ApiModel
@NoArgsConstructor
@AllArgsConstructor
public class EmsEnterpriseDTO implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@CopyField(update=true)
	private String id;
	
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	@NotNull(message="商户名称不能为空")
	@Length(max=32,message="商户名称不能超过32个字符")
	@ApiModelProperty("商户名称")
	@CopyField(add=true,update=true)
	private String name;
	
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	@ApiModelProperty(value="商户编码")
	@CopyField(add=true,update=true)
	private String ecode;
	
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	@CopyField(add=true,update=true)
	@ApiModelProperty(value="商户介绍")
	private String comments;
	
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	@CopyField(add=true,update=true)
	@ApiModelProperty(value="管理员Id")
	private String adminId;
	
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	@CopyField(add=true,update=true)
	@ApiModelProperty(value="状态（0锁定，1整除）")
	private Integer status;
	
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	@CopyField(add=true,update=true)
	@ApiModelProperty(value="店铺最大数量-1不限制数量")
	private Integer shopMax;
	
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	@CopyField(add=true,update=true)
	@ApiModelProperty(value="当前店铺数量")
	private Integer shopCurrent;
	
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	@CopyField(add=true,update=true)
	@ApiModelProperty(value="关联账号最大数量-1不限制")
	private Integer accountMax;
	
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	@CopyField(add=true,update=true)
	@ApiModelProperty(value="当前关联账号数量")
	private Integer accountCurrent;
	
	
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	@ApiModelProperty(value="删除状态（0正常，1已删除）")
	private Integer delFlag;
	
	
	
}
